package com.kxmall.web.controller.huishouapp;

import org.apache.commons.lang3.time.DateFormatUtils;

import java.util.Calendar;
import java.util.Date;

public class Test {

    public static void main(String[] args){
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(new Date(System.currentTimeMillis() - 3600*1000l*24));
        int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);

        System.out.println(dayOfWeek);
    }
}
